package com.huakang.service.impl;

import com.huakang.entity.Sickroom;
import com.huakang.mapper.SickroomMapper;
import com.huakang.service.SickroomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class SickroomServiceImpl  implements SickroomService {
    @Autowired
    private SickroomMapper sickroomMapper;

    @Override
    public List<Sickroom> getAll() {
        return sickroomMapper.selectByExample(null);
    }

    @Override
    public Sickroom getKey(Integer srid) {
        return sickroomMapper.selectByPrimaryKey(srid);
    }
}
